<template>
	<view class="content">
		<navigabar title='推荐列表' />
		<image class="ui_bg" src="/static/img/bg_tuijian.png" mode=""></image>

		<view class="ui_info">
			<view class="ui_info_item">
				<view class="ui_info_item_num">27</view>
				<view class="ui_info_item_text">邀约人数</view>
			</view>
			<view class="ui_info_line"></view>
			<view class="ui_info_item">
				<view class="ui_info_item_num">27</view>
				<view class="ui_info_item_text">成功邀约</view>
			</view>
		</view>
		<view class="ui_tab_top">
			<u-tabs :list="tabs" @click="click" lineWidth="20" lineColor="#9F6F26" :scrollable="false"></u-tabs>
		</view>

		<view class="ui_list">
			<view class="ui_list_item" v-for="(item,index) in 3" :key="index">
				<image class="ui_list_item_img" src="/static/logo.png" mode=""></image>
				<view class="ui_list_item_text">黎欢 <p>有效用户</p>
				</view>
				<view class="ui_list_item_time">2025-05-10 12:32:54 邀请成功</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				tabs: [{
					name: '全部',
				}, {
					name: '成功邀约',
				}, {
					name: '失效邀约',
				}]
			}
		},
		methods: {
			click(item) {
				console.log('item', item);
			},
		}
	}
</script>

<style lang="less">
	.content {
		width: 750rpx;
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;

		.ui_bg {
			position: absolute;
			top: 0;
			left: 0;
			width: 750rpx;
			height: 340rpx;
			z-index: 88;
		}

		.ui_info {
			z-index: 90;
			margin-top: 20rpx;
			margin-left: 18rpx;
			width: 714rpx;
			height: 170rpx;
			display: flex;
			background: linear-gradient(90deg, #C7974E, #986B28);
			border-radius: 20rpx;

			&_line {
				margin-top: 36rpx;
				width: 1rpx;
				height: 90rpx;
				background: #D6CEC2;
			}

			&_item {
				flex: 1;
				display: flex;
				flex-direction: column;
				align-items: center;

				&_num {
					font-family: D-DIN Condensed;
					font-weight: bold;
					font-size: 48rpx;
					color: #fff;
					margin-top: 20rpx;
				}

				&_text {
					margin-top: 5rpx;
					font-family: PingFang SC;
					font-weight: 500;
					font-size: 24rpx;
					color: #fff;
				}
			}
		}

		.ui_tab_top {
			z-index: 91;
			border-radius: 20rpx 20rpx 0rpx 0rpx;
			width: 750rpx;
			padding-top: 20rpx;
			margin-top: -20rpx;
			background: #fff;
		}

		.ui_list {
			width: 750rpx;
			display: flex;
			flex-direction: column;
			background: #FFFFFF;

			&_item {
				margin-left: 18rpx;
				width: 714rpx;
				height: 140rpx;
				border-radius: 10rpx;
				display: flex;
				position: relative;
				border-bottom: 1rpx solid #E6E6E6;
				;

				&_img {
					width: 80rpx;
					height: 80rpx;
					border-radius: 40rpx;
					border: 4px solid #FFFFFF;
					margin: 20rpx 30rpx;
				}

				&_text {
					position: absolute;
					top: 30rpx;
					left: 138rpx;
					font-family: PingFang SC;
					font-weight: bold;
					font-size: 32rpx;
					color: #2D2D2D;
					line-height: 32rpx;
					display: flex;
					align-items: center;

					p {
						margin-left: 10rpx;
						padding: 2rpx 3rpx;
						background: #FFFAEE;
						border-radius: 6rpx;
						border: 1px solid #9F6F26;
						font-family: PingFang SC;
						font-weight: 500;
						font-size: 18rpx;
						color: #9F6F26;
					}
				}

				&_time {
					position: absolute;
					top: 75rpx;
					left: 138rpx;
					font-family: PingFang SC;
					font-weight: 500;
					font-size: 24rpx;
					color: #999999;
					line-height: 36rpx;
				}
			}
		}
	}
</style>